/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.openvoip.client.IHM.communication;

import com.rie06.openvoip.client.Contact;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import org.apache.log4j.Logger;

/**
 *
 * @author Sylvain
 */
public class WindowListAddContactConversation extends JFrame {
    
    private CommunicationController communicationController;
    private PanelAddListContactConversation panelAddListContactConversation;
    private JScrollPane scrollContactListConversation;
    private PanelChoiceListeContact panelChoiceListeContact;
    private WindowDialog windowDialog;
    private static final Logger logger = Logger.getLogger(WindowListAddContactConversation.class);
    
    
    public WindowListAddContactConversation(CommunicationController communicationController, WindowDialog windowDialog){
        
        this.setTitle("Communication");
        this.communicationController = communicationController;
        this.windowDialog = windowDialog;
        this.communicationController.setWindowListAddContactConversation(this);
        this.setSize(250,500);
        this.setLocation(500, 200);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        this.setResizable(false);
        // scrollContactListConversation = new JScrollPane(this);
        
        PanelChoiceListeContact panelChoiceListeContact = new PanelChoiceListeContact(this, communicationController, panelAddListContactConversation);
        this.add(panelChoiceListeContact);
   
    }

    public PanelChoiceListeContact getPanelChoiceListeContact() {
        return panelChoiceListeContact;
    }

    public WindowDialog getWindowDialog() {
        return windowDialog;
    }
    
    
    
}
